package com.yml.mybatis.gererator.meta;

import java.util.List;

/**
 * 表信息
 *
 * @author YML
 * @since 2023-07-20 09:14
 */
public class TableInfo {

    /** 表ID **/
    private Object id;
    /** 表名称 **/
    private String tableName;

    /** 格式化名称,如忽略前缀后表名 **/
    private String tableFormatName;

    /** 表备注 **/
    private String comment;

    /** 字段集合 **/
    private List<ColumnInfo> columnInfos;

    public TableInfo(Object id,String tableName) {
        this.tableName = tableName;
        this.id = id;
    }

    public TableInfo(String tableName) {
        this.tableName = tableName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Object getId() {
        return id;
    }

    public void setId(Object id) {
        this.id = id;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public List<ColumnInfo> getColumnInfos() {
        return columnInfos;
    }

    public void setColumnInfos(List<ColumnInfo> columnInfos) {
        this.columnInfos = columnInfos;
    }

    public String getTableFormatName() {
        return tableFormatName;
    }

    public void setTableFormatName(String tableFormatName) {
        this.tableFormatName = tableFormatName;
    }
}
